{config_load file="index.conf"}<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card title="Edit">
        {include file="inc/global_menu.tpl"}

		<b>{$error.empty}</b><br />
	    Username:<br />
	    <input type="text" name="user_login" value="{$data.user_login|escape}" readonly="readonly" /><br />
	    E-mail:<b>{$error.mail}</b><br />
	    <input type="text" name="user_mail" value="{$data.user_mail|escape}" /><br />
	    Gender:<br />
	    <select name="user_sex">
	        <option value="">Your gender</option>
	        <option value="male" {if $data.user_sex == 'male'}selected="selected"{/if}>Male</option>
	        <option value="female" {if $data.user_sex == 'female'}selected="selected"{/if}>Female</option>
	    </select><br />
	    Age:<b>{$error.born}</b><br />
	    {html_select_date selected_month="$month" selected_year="$year" selected_day="$day" start_year="-60" end_year="-8"}<br />
	    Phone number:<br />
	    <input type="text" name="user_number" value="{$data.user_number|escape}" readonly="readonly" /><br />
	    Country/region:<br />
	    <input type="text" name="user_country" value="{$data.user_country|escape}" /><br />
	    City/other country:<br />
	    <input type="text" name="user_city" value="{$data.user_city|escape}" /><br />
	    About yourself:<br />
	    <input type="text" name="user_description" value="{$data.user_description|escape}" /><br />
		<anchor>Change
            <go href="/{$sys_path}/" method="post">
                <postfield name="data[user_login]" value="$(user_login)"/>
                <postfield name="data[user_mail]" value="$(user_mail)"/>
                <postfield name="data[user_sex]" value="$(user_sex)"/>
                <postfield name="data[user_number]" value="$(user_number)"/>
                <postfield name="data[user_country]" value="$(user_country)"/>
                <postfield name="data[user_city]" value="$(user_city)"/>
                <postfield name="data[user_description]" value="$(user_description)"/>
            </go>
        </anchor><br />
		
		<b>{$error.password_empty}</b><br />
		<b>{$result}</b><br />
	    Old password:<b>{$error.old_password}</b><br />
	    <input type="password" name="old_password" /><br />
	    Password:<b>{$error.password}</b><br />
	    <input type="password" name="password" /><br />
	    Password again:<br />
	    <input type="password" name="password_again" /><br />
		<anchor>Change
            <go href="/{$sys_path}/" method="post">
                <postfield name="data[old_password]" value="$(old_password)"/>
                <postfield name="data[password]" value="$(password)"/>
                <postfield name="data[password_again]" value="$(password_again)"/>
                <postfield name="password" value="1"/>
            </go>
        </anchor><br />
		
		{include file="profile/inc/return.tpl"}
    </card>
</wml> 